<!DOCTYPE html>
<html ng-app="ylApp">
<head lang="zh">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <title>患者信息</title>
    <link rel="stylesheet" href="css/customized.css"/>
    <style>
        #search-input::-ms-input-placeholder{text-align: center;}
        #search-input::-webkit-input-placeholder{text-align: center;}
    </style>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/angular/angular.min.js"></script>
    <script>
        var app = angular.module('ylApp',[]);
    </script>
    <script src="js/controller.js"></script>
</head>
<body ng-controller="patientInformationController" ng-cloak>
<div class="navbar" style="padding-bottom: 7px">
    <a href="javascript:void(0)"><span class="back-arrow" ng-click="backward()"></span></a>
    <span>患者信息</span>
    <span style="position: absolute;right: 11px;top: 19px;font-size: 14px;"><a href="transferQuery.html" style="color: #ffffff;">转诊查询</a></span>
    <div style="padding: 0 11px;">
        <input id="search-input" type="text" placeholder="Search" ng-model="keyword" ng-change="search()" style="width: 100%;height: 22px;border: 1px solid transparent;border-radius: 7px;font-size: 15px;text-indent: 10px;margin: 20px 0 0 0;padding: 0"/>
    </div>
</div>
<div style="height:100%;background-color: rgb(251,246,234);">
    <div id="pendinglist">
        <div class="onePending" ng-repeat="patient in patientList">
            <div class="nothing">
                <div ng-class="{1:'outsideMark'}[patient['transferMark']]" class="mark">
                    <a class="markWord">{{patient['transferMark']=='1'?'出':''}}</a>
                </div>
                <div class="pendingInfo">
                    <p>姓名：{{patient['patientName']}}</p>
                    <p>性别：{{sexCode2Str(patient['patientSex'])}}</p>
                    <p>年龄：{{ageCode2Str(patient['patientBirthday'])}}</p>
                    <p>就诊时间：{{cutTime(patient['createTime'])}}</p>
                    <p ng-show="patient['transferMark']=='1'">转诊单号:{{patient['transferID']}}</p>
                    <p ng-show="patient['transferMark']=='1'">转诊地点:{{patient['hospital']}}</p>
                </div>
            </div>
            <div class="pendingChoosen">
                <a href="patientResume.html?patientId={{patient['id']}}"> <button class="choosenButton buttonLeft">查看详情</button></a><a href="patientTransfer.html?patientId={{patient['id']}}"><button class="choosenButton right" ng-disabled="patient['transferMark']==1" ng-class="{true:'disabled'}[patient['transferMark']=='1']">{{(patient['transferMark']=='2')?'转诊':'已转诊'}}</button></a>
            </div>
        </div>
    </div>
</div>
</body>
</html>